﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VatTuDTO;
using VatTuDAO;

namespace VatTuBUS1
{
    public class NguoiDungBUS
    {
        public List<NguoiDungDTO> SelectNguoiDung()
        {
            return new NguoiDungDAO().SelectNguoiDung();
        }
        //----------------------------
        public NguoiDungDTO SelectNguoiDung(string tenDangNhap, string matKhau)
        {
            return new NguoiDungDAO().SelectNguoiDung(tenDangNhap, matKhau);
        }

        //---------------------------------------------
        public NguoiDungDTO SelectNguoiDung(int MaNguoiDung)
        {
            return new NguoiDungDAO().SelectNguoiDung(MaNguoiDung);
        }

        //------------------------------------------------
        public Boolean InsertNguoiDung(NguoiDungDTO NguoiDung)
        {
            return new NguoiDungDAO().InsertNguoiDung(NguoiDung);
        }

        //------------------------------------------------
        public Boolean UpdateNguoiDung(NguoiDungDTO nd)
        {
            return new NguoiDungDAO().UpdateNguoiDung(nd);
        }

        //-----------------------------------------------
        public Boolean DeleteNguoiDung(int MaNguoiDung)
        {
            return new NguoiDungDAO().DeleteNguoiDung(MaNguoiDung);
        }

    }
}
